<template>
    <div class="hello">
        <h1>{{ msg }}</h1>
        <p>
            引入成功
        </p>
        <button @click="demo3">点击事件</button>
    </div>
</template>

<script>
export default {
    name: 'HelloWorld',
    props: {
        msg: String
    },
    methods: {
        demo(data) {
            return "demo imported " + data
        },
        demo2() {
            return "demo2 imported"
        },
        demo3() {
            alert("点击事件")
        }
    }
}
</script>

<style scoped>
h3 {
    margin: 40px 0 0;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    display: inline-block;
    margin: 0 10px;
}

a {
    color: #42b983;
}
</style>
